﻿using System;
using SrBBSPro.Entities;
using SrBBSPro.BaseClasses;
using System.Collections.Generic;

namespace SrBBSPro.Services
{
    public class PageInfoService : BaseDoubleService<PageInfo>
    {
        public List<PageInfo> GetPageList(long pid, out int count, int page)
            => GetLimitList(DbBase.Query<PageInfo>().Where(b => b.Id == pid).ToList(),  out count, page);


        public List<PageInfo> GetPageInfos(long pid)
            => DbBase.Query<PageInfo>().Where(p => p.Id == pid).ToList();

    }
}